﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using HjKisTableAdapters;
using RGPWEB.App_Code.DAL;
using RGPWEB.App_Code.DAL.HjKisTableAdapters;

[System.ComponentModel.DataObject]
public class t_ICItemBLL
{
    private t_ICItemTableAdapter _productsAdapter = null;
    protected t_ICItemTableAdapter Adapter
    {
        get
        {
            if (_productsAdapter == null)
                _productsAdapter = new t_ICItemTableAdapter();

            return _productsAdapter;
        }
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetMaterials()
    {
        return Adapter.GetMaterials();
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetMaterialByFItemID(int FItemID)
    {
        return Adapter.GetMaterialByFItemID(FItemID);
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetDataByFNumber(string FNumber)
    {
        return Adapter.GetDataByFNumber(FNumber);
    }


    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetDataByFName(string FName)
    {
        return Adapter.GetDataByFName(FName);
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, false)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetDataByDistinctFName(string FNumber)
    {
        return Adapter.GetDataByDistinctFName(FNumber);
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetDataByFModel(string FModel)
    {
        return Adapter.GetDataByFModel(FModel);
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public RGPWEB.App_Code.DAL.HjKis.t_ICItemDataTable GetDataByValue(string FNumber,string Fname,string FModel)
    {
        
        
        return Adapter.GetDataByValue(FNumber,Fname,FModel);
    }


}